<?
	$title="About Us";
	require("required/dbconnect.php");
	$_SESSION['pid']=-1;
	require("required/share_function.php");
	require("required/header.php");
	$get_tnc=mysql_query("select content from os_contents where content_type='aboutus'")or die(mysql_error());
	$a=mysql_fetch_array($get_tnc,MYSQL_ASSOC);
?>
	<table width="100%" cellpadding="5" cellspacing="0">		
		<td width="50%" valign="top">
        	 <form action="os_login.php" method="post" name="loginfrm">
        	<table width="100%">
                <tr>
                    <td class="page_title_bar">Sign in</td>
                </tr>
                <tr>
      
        	
            <?
				 if(empty($_GET['errormsg']))
				  {
					  $errormsg="";
				  }
				  elseif($_GET['errormsg']==1)
				  {
					  $errormsg="<font color='red'>Invalid email or password</font>";	
				  }
				  elseif($_GET['errormsg']==2)
				  {
					  $username=$_GET['username'];
					  $errormsg="<font color=red>this account not yet activate<br>
					  <a href='os_resendactivation.php?username=$username'>resend activation email</a></font>";	
				  }
			?>
            	
                        
                        
                        <TD valign="top">
                        <?= $errormsg ?><br>
                        Email&nbsp;<br />
                        <input type="text" size="35" name="login_email" > &nbsp;
                        <br />
                        Password&nbsp;<br />
                        
                        <input type="password" size="35" name="login_password" > &nbsp;
                        <br /> <br />
                        <input type="submit" value="Login" class="button" name="loginsubmit"> &nbsp;
                
                       
                        <input type="button" value="Forgot password?" class="button" onClick="window.open('os_forgotpwd.php','_self')">
                  		</TD>
                        
                    
                    
            	</tr>
                </table>
                </FORM>
                </td>
               <td width="50%" valign="top">
               		<table width="100%">
                    	<tr>
                        	<td class="page_title_bar">Or Register Now</td>
                        </tr>
	 				<tr>
                    	<td> <br>   
							Create a login profile which allows you to shop faster, track the status of your current orders and review your previous orders.
                            <br />
                             <input type="button" value="Register" class="button" onClick="window.open('os_register.php','_self')"> &nbsp;
                        </td>
                    </tr>
                    </table>
                </td>   
       		
      
			
			
		</tr>
	</table>	

<?  require("required/footer.php"); ?>